<template>
  <div>
    <van-nav-bar
      class="w"
      title="我的地址"
      left-arrow
      @click-left="onClickLeft"
      right-text="新建地址"
      @click-right="xin"
    />
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    onClickLeft(){
      this.$router.push({path:"/ge"})
    },
    xin(){
      this.$router.push({path:"/dizhi"})
    }
  },
};
</script>
<style  scoped>
.w {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  margin-bottom: 20px;
}
</style>